package com.hsjk.szwj.module.train.service.impl;

import com.hsjk.szwj.framework.common.pojo.PageResult;
import com.hsjk.szwj.module.train.controller.admin.vo.AdminEnrollCluePageReqVO;
import com.hsjk.szwj.module.train.controller.admin.vo.AdminEnrollCluePageRespVO;
import com.hsjk.szwj.module.train.convert.EnrollClueConvert;
import com.hsjk.szwj.module.train.dal.dataobject.fission.EnrollClueDO;
import com.hsjk.szwj.module.train.dal.mysql.fission.IEnrollClueMapper;
import com.hsjk.szwj.module.train.service.IEnrollClueService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author chenjiawei
 * @desc
 * @Date 2023/09/10 00:48
 **/
@Service
public class EnrollClueServiceImpl implements IEnrollClueService {
    @Resource
    private IEnrollClueMapper enrollClueMapper;

    @Override
    public PageResult<AdminEnrollCluePageRespVO> getEnrollCluePageList(AdminEnrollCluePageReqVO reqVO) {
        PageResult<EnrollClueDO> enrollClueDOPageResult = enrollClueMapper.selectPage(reqVO);
        return EnrollClueConvert.INSTANCE.convertAdminEnrollCluePageRespVO(enrollClueDOPageResult);
    }
}
